class FileInstance

  @@length = 0
  @@currentlength = 0

  def self.set_length(length)
    @@length = length
  end

  def self.get_length
    @@length

  end

  def self.set_currentlength(length)
    @@currentlength = length
  end

  def self.get_currentlength
    @@currentlength

  end



  # field <name>, :type => <type>, :default => <value>


  # You can define indexes on documents using the index macro:
  # index :field <, :unique => true>

  # You can create a composite key in mongoid to replace the default id using the key macro:
  # key :field <, :another_field, :one_more ....>
end
